package com.moon.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeController {
    @RequestMapping("/")
    public String home() {
        return "demo/homeh";
    }

    @RequestMapping("/open/{work}")
    public String open(@PathVariable("work") String work) {
        return "demo/" + work;
    }

    //
}
